Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please update inst/rkward/plugins/non_parametric_tests/kruskal_wallis.js #1

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

AlfCano
Copy link

@AlfCano AlfCano commented Jul 14, 2022

The QtScript has informed of an error:

Script Error in file:///usr/share/rkward/phpfiles/common.js, line 31: TypeError: Cannot read property 'noquote' of undefined
Backtrace:
quote@file:///usr/share/rkward/phpfiles/common.js:31
makeHeaderCode@file:///usr/share/rkward/phpfiles/common.js:91
https://github.com/file:///usr/share/rkward/phpfiles/common.js:113
printout@file:///home/username/R/x86_64-pc-linux-gnu-library/4.2/rkTeaching/rkward/plugins/non_parametric_tests/kruskal_wallis.js:68
do_printout@file:///usr/share/rkward/phpfiles/common.js:178
%entry@:1

59  -  header.add(i18n("Comparison of %1 according to %2", variableName, factorName));
	       59  +  header.add(i18n("Comparison of"), i18n("%1 according to %2", variableName, factorName));

Thanks!!!
Regards.

alfcanr and others added 12 commits March 15, 2021 13:01
The "split is not a function" error occurs when we call the split() method on a value that is not of type string. To solve the error, convert the value to a string using the toString() method before calling the split method or make sure to only call the split method on strings.

https://bobbyhadz.com/blog/javascript-typeerror-string-split-is-not-a-function#:~:text=The%20%22split%20is%20not%20a,the%20split%20method%20on%20strings.
Update common_functions.js
The QtScript has informed of an error:

Script Error in file:///usr/share/rkward/phpfiles/common.js, line 31: TypeError: Cannot read property 'noquote' of undefined
Backtrace:
quote@file:///usr/share/rkward/phpfiles/common.js:31
makeHeaderCode@file:///usr/share/rkward/phpfiles/common.js:91
@file:///usr/share/rkward/phpfiles/common.js:113
printout@file:///home/username/R/x86_64-pc-linux-gnu-library/4.2/rkTeaching/rkward/plugins/non_parametric_tests/kruskal_wallis.js:68
do_printout@file:///usr/share/rkward/phpfiles/common.js:178
%entry@:1
Update kruskal_wallis.js
@tfry-git
Copy link

As for the patch in kruskal_wallis.js, yes of course I want to merge that fix. Thanks!

Your merge request contains a number of additional changes, however, and I am not sure, what to make of these. I suppose some of these (e.g. the language changes in data_weighting) got into the MR, by accident. Others may or may not be intended to be merged. Could you review the changes, and elaborate a bit?

@AlfCano
Copy link
Author

AlfCano commented Jul 15, 2022

As for the patch in kruskal_wallis.js, yes of course I want to merge that fix. Thanks!

Your merge request contains a number of additional changes, however, and I am not sure, what to make of these. I suppose some of these (e.g. the language changes in data_weighting) got into the MR, by accident. Others may or may not be intended to be merged. Could you review the changes, and elaborate a bit?

First of all, just to say thanks for all the time and hard work you and all the team put on this!!!

Yeah, got those additional changes mixed up. Those are some workarounds to some glitches I've encountered along the way (a few years since I've been using it), but not proper implementations. And as you've noticed the one in "data_weighting" I had done it before Alfredo made all the effort to unify the english and spanish versions through the use of "i18n".
Though, and as unDocUMeantIt, pointed out here:

asalber#18

currently rkTeaching cannot be installed due to its package dependecy prob being unavailable since april (due to the removal of dependency fAsianOptions).

And maybe it is time to start working in a substitution, remove/work around, which I'm not sure where to start.

I know there are some development kits, but a hint or advice would be nice.
I apologize for all the trouble with all those eleven unintended commits and distracting you with all that extra context.

One more time thanks and best regards.

@tfry-git
Copy link

Ok, thanks. I have added your path to kruskal_wallis.js, manually, for now.

As for how to proceed: I am very glad somebody (you) is actively working on this package, and I hope we'll get it back into proper shape, quickly.

Regarding the dependency on "prob":
I believe this to be relatively "localized": All plugins using this seem to be inside plugins/probability/ . In addition there are three R functions is.probspace, repeat.probspace, and combine.probspace, which I believe are used in the same plugins, too. Disabling those, temporarily, should be possible as a quick workaround. In fact, I would argue, a reasonable first step will be to simply turn the "Depends: prob" into "Suggests: prob". This will allow to use everything else in the package, much easier.
After that, you could start looking into those plugins one by one to see what is actually done, and how that might be substituted from an active package.

What worries me a bit more, however, is that somehow we ended up with a bunch of separate repositories which have diverged, so that fixes, and improvements (like yours) are not easily mergeable. It would be cool, if you could make a list of what changes are actually meant for inclusion, and sort the other ones into a separate branch.

You may also be interested in push access to this repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants